import 'dart:ffi';

class CheckDataVersionData {
  String code;
  String requestId;
  String msg;
  CheckVersion data;

  CheckDataVersionData({this.code, this.requestId, this.msg, this.data});

  CheckDataVersionData.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    requestId = json['requestId'];
    msg = json['msg'];
    data = json['data'] != null ? new CheckVersion.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['requestId'] = this.requestId;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}
class CheckVersion {
  bool updateState; //
  int forceUpdate; // 是否必须更新，1：必须更新  0：非必须更新
  String downloadUrl;
  String version;//版本号
  String updateDescribe;//更新描述


  String _packageName; //包名

  CheckVersion({this.updateState, this.forceUpdate, this.version, this.downloadUrl, this.updateDescribe});

  String get packageName => _packageName;

  set packageName(String packageName) => _packageName = packageName;

  CheckVersion.fromJson(Map<String, dynamic> json) {
    updateState = json['updateState'];
    forceUpdate = json['forceUpdate'];
    version = json['version'];
    downloadUrl = json['downloadUrl'];
    updateDescribe = json['updateDescribe'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['updateState'] = this.updateState;
    data['forceUpdate'] = this.forceUpdate;
    data['version'] = this.version;
    data['downloadUrl'] = this.downloadUrl;
    data['updateDescribe'] = this.updateDescribe;
    return data;
  }

}